package jscinttools.scint.models;

import java.lang.Math;
import java.io.Serializable;

/**
 *  Description of the Class
 *
 *@author     marc-antoine
 *@created    16 février 2011
 */
public class CalcKag implements Serializable
{
	private double kag_MHz = 0;


	/**
	 *  Constructor for the CalcKr object
	 */
	public CalcKag() { }


	/**
	 *  Constructor for the CalcKag object
	 *
	 *@param  kag1_us     Description of the Parameter
	 *@param  kag2_us     Description of the Parameter
	 *@param  dag_K       Description of the Parameter
	 *@param  temp_K      Description of the Parameter
	 *@param  capKag_us   Description of the Parameter
	 *@param  deltaEag_K  Description of the Parameter
	 */
	public CalcKag(double kag1_us, double kag2_us, double dag_K, double capKag_us, double deltaEag_K, double temp_K)
	{
		kag_MHz = (1.0 / kag1_us) + (1.0 / kag2_us) * Math.exp(-1.0 * dag_K / temp_K) + (1.0 + Math.exp(-1.0 * dag_K / temp_K)) * (1.0 / capKag_us) * Math.exp(-1.0 * deltaEag_K / temp_K);
	}


	/**
	 *  Gets the kag_MHz attribute of the CalcKag object
	 *
	 *@return    The kag_MHz value
	 */
	public double getKag_MHz()
	{
		return kag_MHz;
	}


	/**
	 *  Sets the kag_MHz attribute of the CalcKag object
	 *
	 *@param  kag_MHz  The new kag_MHz value
	 */
	public void setKag_MHz(double kag_MHz)
	{
		this.kag_MHz = kag_MHz;
	}
}

